package com.example.demo001.constant;

public class MessageConstant {
    private MessageConstant() {
    }
    public static final String ALREADY_EXISTS = "已存在";
    public static final String UNKNOWN_ERROR = "未知错误";
    public static final int USER_STATUS_NORMAL = 1;
    public static final int USER_STATUS_LOCKED = 2;
    public static final int USER_STATUS_DELETED = 3;
    // 密码输入错误的key过期时间
    public static final int PASSWORD_ERROR_KEY_EXPIRE_TIME = 600;
    // redis的increment()方法过期时间增量幅度
    public static final int DELTA = 1;
    //邮件验证码的过期时间
    public static final int EMAIL_CODE_EXPIRE_TIME = 60;
    //邮件验证码的个数
    public static final int EMAIL_CODE_NUM = 6;
    //参数不能为空
    public static final String PARAM_NOT_NULL = "参数不能为空";
    //用户名不能为空
    public static final String USERNAME_NOT_NULL = "用户名不能为空";
    public static final String PASSWORD_NOT_NULL = "密码不能为空";
    public static final String EMAIL_NOT_NULL = "邮箱不能为空";
    //用户名格式错误
    public static final String USERNAME_FORMAT_ERROR = "用户名格式错误";
    //密码格式错误
    public static final String PASSWORD_FORMAT_ERROR = "密码格式错误";
    //邮箱格式错误
    public static final String EMAIL_FORMAT_ERROR = "邮箱格式错误";
    //邮箱已被注册
    public static final String EMAIL_ALREADY_EXISTS = "邮箱已被注册";
    public static final String USERNAME_ALREADY_EXISTS = "用户名已被注册";
    //邮箱不存在
    public static final String EMAIL_NOT_EXISTS = "邮箱不存在";
    public static final String USERNAME_NOT_EXISTS = "用户名不存在";
    public static final String USER_STATUS_LOCKED_ERROR = "用户状态被锁定";
    //密码输入有误
    public static final String PASSWORD_ERROR = "密码输入有误";
    //原密码格式错误
    public static final String OLD_PASSWORD_FORMAT_ERROR = "原密码格式错误";
    public static final String NEW_PASSWORD_FORMAT_ERROR = "新密码格式错误";
    //原密码输入有误
    public static final String OLD_PASSWORD_ERROR = "原密码输入有误";
    //验证码错误或过期
    public static final String CODE_ERROR = "验证码错误";
    //注册成功
    public static final String REGISTER_SUCCESS = "注册成功";
    //登录成功
    public static final String LOGIN_SUCCESS = "登录成功";
    //登出成功
    public static final String LOGOUT_SUCCESS = "登出成功";
    public static final String RESET_PASSWORD_SUCCESS = "重置密码成功";
    public static final String UPDATE_EMAIL_SUCCESS = "修改邮箱成功";

    //邮箱发送失败
    public static final String SEND_EMAIL_ERROR = "邮箱发送失败";
    public static final String SEND_EMAIL_SUCCESS = "邮箱发送成功";
    //请求体缺失
    public static final String REQUEST_BODY_MISSING = "请求体缺失或格式错误";
    //请重新登入
    public static final String PLEASE_RE_LOGIN = "请重新登入";
    //token为空
    public static final String TOKEN_IS_NULL = "令牌为空";
    //token错误
    public static final String TOKEN_ERROR = "token错误";
    public static final String TOKEN_CHECK_FAILED = "token失效";
    //验证码过期
    public static final String EMAIL_CODE_EXPIRED = "验证码过期";
    //邮箱不一致
    public static final String EMAIL_NOT_SAME = "邮箱不一致";

    //老密码不能为空
    public static final String OLD_PASSWORD_NOT_NULL = "老密码不能为空";
    public static final String NEW_PASSWORD_NOT_NULL = "新密码不能为空";

    public static final String USER_NOT_LOGIN = "该用户在其他地方未登录";
    public static final String USER_IS_LOGIN = "该用户在其他地方已经登录了";
}
